﻿using System.Threading;

namespace Shared_Mutex_Manager_Test.Locking
{
    /// <summary>
    ///     Notification event arguments when an AbandonedMutexException occurs
    /// </summary>
    public class SharedMutexAbandonedEventArgs : SharedMutexEventArgs
    {
        public SharedMutexAbandonedEventArgs(string mutexName, AbandonedMutexException exception)
            : base(mutexName)
        {
            this.Exception = exception;
        }

        /// <summary>
        ///     Indicates if Wait was aborted
        /// </summary>
        public AbandonedMutexException Exception { get; private set; }
    }
}